package com.fishery.order.handler;

import com.fishery.entity.Result;
import com.fishery.order.entity.client.OrderVo;
import com.fishery.order.service.client.LogisticsClient;
import org.springframework.stereotype.Component;

/**
 * @author run
 * @since 2021/3/11 22:21
 */
@Component
public class LogisticsClientFallback implements LogisticsClient {

    @Override
    public Result createLogisticOrder(OrderVo orderVo) {
        return Result.error("物流服务繁忙");
    }

    @Override
    public Result getOrderById(String orderId) {
        return Result.error("物流服务繁忙");
    }

    @Override
    public Result getPathOfLogisticsId(String logisticsId) {
        return Result.error("物流服务繁忙");
    }
}
